projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2ff5038
)
examples: Use right function to query size
author
Benjamin Otte
<otte@redhat.com>
Wed, 8 Nov 2017 15:05:52 +0000
(16:05 +0100)
committer
Benjamin Otte
<otte@redhat.com>
Fri, 10 Nov 2017 13:56:42 +0000
(14:56 +0100)
examples/drawing.c
patch
|
blob
|
history
diff --git
a/examples/drawing.c
b/examples/drawing.c
index 59d8bea026ef53a01315402588380649266c1a15..54d608ea37adf8d25311da7d69a48b6e8a7bd5ae 100644
(file)
--- a/
examples/drawing.c
+++ b/
examples/drawing.c
@@
-27,8
+27,8
@@
configure_event_cb (GtkWidget *widget,
surface = gdk_window_create_similar_surface (gtk_widget_get_window (widget),
CAIRO_CONTENT_COLOR,
- gtk_widget_get_
allocated_
width (widget),
- gtk_widget_get_
allocated_
height (widget));
+ gtk_widget_get_width (widget),
+ gtk_widget_get_height (widget));
/* Initialize the surface to white */
clear_surface ();